/**
 * 
 */
package santeclair.webext.service;

import santeclair.webext.bean.sso.ProfessionnelSanteSsoBean;
import santeclair.webext.domaine.Application;
import santeclair.webext.domaine.JetonApplicationPS;
import santeclair.webext.dto.jeton.enumeration.CodeValidationEnum;

/**
 * @author cquintin
 * 
 */
public interface JetonApplicationPSService {

    /**
     * 
     * @param bean
     * @param appliCible
     * @param typeJeton
     * @return String identifiant du jeton
     */
    public String creerJeton(ProfessionnelSanteSsoBean bean, Application application, String typeJeton);

    /**
     * 
     * @param idJeton
     * @param codeApplication
     * @return
     */
    public CodeValidationEnum validerJetonFFL(String idJeton, String codeApplication);

    /**
     * 
     * @param idJeton
     * @return JetonApplicationPS
     */
    public JetonApplicationPS findById(String idJeton);

    /**
     * Suppression d'un jeton
     * 
     * @param idJeton
     */
    public void deleteJetonById(String idJeton);

}
